import time

def maker_timer(func):
    def wrapper(*args,**kwargs):
        t1 = time.time()
        ret_val = func(*args,**kwargs)
        t2 = time.time()
        print('Time elapsed was',t2 - t1)
        return ret_val
    return wrapper


# def count_nums(n):
#     for i in range(n):
#         for j in range(1000):
#             pass

# count_nums = maker_timer(count_nums)

# count_nums(33000)

@maker_timer
def count_nums(n):
    for i in range(n):
        for j in range(1000):
            pass

count_nums(33000)

